Skip to main content

revXMLValidateDTD

Type​

function

Summary​

Checks whether the syntax of an XML tree conforms to a DTD.

Syntax​

revXMLValidateDTD(<treeID>, <DTDText>)

Description​

Use the revXMLValidateDTD function to validate an XML tree against a DTD.

If the revXMLValidateDTD function encounters an error, it returns an error message starting with "xmlerr".

Important

The revXMLValidateDTD function is part of the XML library. To ensure that the function works in a standalone application, you must include this custom library when you create your standalone. In the Inclusions pane of the Standalone Application Settings window, make sure the "XML" checkbox is checked.

Parameters​

NameTypeDescription

treeID

The number returned by the revXMLCreateTree or revXMLCreateTreeFromFile function when you created the XML tree.

DTDText

A Document Type Definition.

Examples​

revXMLValidateDTD(3,field "DTD")
put revXMLValidateDTD(field "Tree",myDTD) into field "Errors"

Value​

NameTypeDescription

return

The revXMLValidateDTD function returns empty if the XML tree validates against the DTD.

command: revXMLAddDTD

control structure: function

function: revXMLCreateTreeFromFile, revXMLCreateTree

glossary: Standalone Application Settings, validate, standalone application, XML tree, DTD, return, LiveCode custom library

library: XML library

Compatibility and Support​

Introduced

LiveCode 2.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?